package com.yuyou.activity.group.service.service;

import com.yuyou.activity.group.service.entity.ActivityGroupbuyUser;
import com.yuyou.activity.util.bean.ResBoolSimpleInfo;

public interface IActivityGroupbuyUserService {
    int deleteByPrimaryKey(Long activityGroupbuyUserId);

    int insert(ActivityGroupbuyUser record);

    ActivityGroupbuyUser selectByPrimaryKey(Long activityGroupbuyUserId);

    int updateByPrimaryKeySelective(ActivityGroupbuyUser record);
    
    /**
     * 根据openId获取用户信息
     * @param projectCode
     * @param openId
     * @return
     */
    ActivityGroupbuyUser selectByOpenId(String projectCode,String openId);
    
    /**
     * 创建
     * @param record
     * @return
     */
	ResBoolSimpleInfo<String> add(ActivityGroupbuyUser record);
	
	/**
	 * 更新用户信息
	 * @param openId
	 * @param headImg
	 * @param name
	 * @param projectCode
	 * @return
	 */
	ActivityGroupbuyUser addOrUpUser(String openId,String headImg,String name,String projectCode)throws Exception;
}